<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Boss直聘</title>
   <script>
    window.setInterval(demo,100);
    intdex =1;
    function demo() {
        var i = document.getElementById("i1")
        i.src = "D15/w" + index + ".jpg";
        index++;
        if (index == 4) {
            index = 1;
        }
    }
    var a=[1,2,3,4,5];
    var i=a.sort(a);
    </script>
</head>
<body>
<img  id ="i1"src="D15/w1.jpg" height="500" width="400"/>

</body>
</html>